package crowMessenger;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.ScrollPane;

import javax.swing.JFrame;
import javax.swing.JPanel;




public class MainPanel extends JPanel{
	private static final long serialVersionUID = 2949687444255909471L;
	private Dimension dimension = new Dimension(300, 685);
	private BorderLayout layout = new BorderLayout();
	protected ScrollPane scrollpanel;
	protected BuddyList myList;
	protected MainFrame con;
	
	public MainPanel(MainFrame con){
		this.con = con;
		setPreferredSize(dimension);
		setLayout(layout);
		scrollpanel = new ScrollPane();
		myList = new BuddyList(this);
		scrollpanel.add(myList);
		add(scrollpanel);
	}
}
